import request from "./request.js"

export const getIndex = () => { return request({url:'/index',method:'get'})};
export const getChipe = () => { return request({url:'/coupon',method:'get'})};
export const getClass = (usable) => { return request({url:`/group?usable=${usable}`,method:'get'})};
export const setUser = (params) => { return request({url:'/reg',method:'post',data:params})};
export const getLogin = (params) => { return request({url:'/login',method:'post',data:params})};
export const setPhone = (params) => { return request({url:'/get_captcha',method:'post',data:params})};
export const setYzm = (params) => { return request({url:'/bind_mobile',method:'post',data:params})};
export const getTest = (params) => { return request({url:`/testpaper/list?page=${params.page}&limit=${params.limit}`,method:'get'})};
export const GetTestList = (id) => { return request({url:`/testpaper/read?id=${id}`,method:'get'})};
 